Repository navigation
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
Prepend a built-in scope/boundary system prompt to every agent and orchestrator prompt. Nodes opt out with `prompts.extra_default: false`, which removes only Extra's text and keeps the node's own prompt. Both nodes now compose their system prompt through a single generic `assemble_prompt(*fragments)` helper, in the order: Extra default -> rendered node prompt -> orchestrator contract. Only the node prompt is interpolated. Each node's model call carries its own complete prompt, so the default appears once per call during delegated execution. Closes extra-org#100 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the contribution. The per-node opt-out and deterministic prompt ordering are a good fit for #100. I reviewed commit
Please also add a short ADR recording the YAML flag, enabled-by-default behavior, composition order, and opt-out semantics, as required by the project's contract-change guidelines. Local validation: |
…ault in schema Address review on extra-org#158: - Declare `prompts.extra_default` (boolean, default true) for agents and orchestrators in examples/config.schema.json, which uses additionalProperties: false and so rejected the documented opt-out. Add parser/schema parity tests. - `assemble_prompt` now uses strip() only to detect blank fragments and keeps non-blank fragments byte-for-byte, so indentation in custom prompts (e.g. a Markdown code block) reaches the model unchanged, including for opted-out nodes. Only the engine-owned orchestrator contract is trimmed. Add whitespace-preservation regression tests. - Add ADR 0011 recording the YAML flag, default-on behavior, composition order, and opt-out semantics. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the review! Both the issues and the ADR request should be addressed in the latest commit:
|
Address #100. This implements the design proposal this comment. I am happy to modify/hold off on any of this.